package com.wy.dao;

import com.wy.model.sys.NoticeRelation;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface NoticeRelationMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(NoticeRelation record);

    int insertSelective(NoticeRelation record);

    NoticeRelation selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(NoticeRelation record);

    int updateByPrimaryKey(NoticeRelation record);

    List<Integer> getNoticeByRIds(List<String> groupId,Integer type);

    void insertBatch(List<NoticeRelation> list);

    void modifyReadStatus(int id,int uid);

    void deleteNoticeRelation(@Param("groupId")List<String> groupId);
}